import { RouteConfig } from "vue-router";
import Comments from '@/pages/pkg/comments.vue';

import ShopEvaluationList from '@/pages/pkg/shopComments.vue';

import Detail from '@/pages/pkg/detail.vue';
import Order from '@/pages/pkg/order.vue';
import Revision from '@/pages/pkg/revision.vue';
import { ROUTE_NAME } from "@/lib/constant";



export const routes: RouteConfig[] = [
    {
        path:'/pkg/shopComments/:shopId?',
        name:ROUTE_NAME.SHOP_COMMENT,
        meta:{
            title:'评价列表'
        },
        component: ShopEvaluationList,
    },
    {
        path: '/pkg/comments/:goodId/:type',
        name: ROUTE_NAME.PKG_COMMENT,
        meta: {
            title: '评价列表',
        },
        component: Comments,
    },
    {
        path: '/pkg/detail/:pkgId?',
        name: ROUTE_NAME.PKG_DETAIL,
        meta: {
            title: '套系详情',
        },
        component: Detail,
    },
    {
        path: '/pkg/order/:pkgId/:shopId/:type',
        name: ROUTE_NAME.PKG_ORDER,
        meta: {
            title: '填写订单',
            needInfo: true,
        },
        component: Order,
    },
    {
        path: '/pkg/revision/:pkgId/:specIndex',
        name: ROUTE_NAME.PKG_REVISION,
        meta: {
            title: '套餐调整',
            needInfo: true,
        },
        component: Revision,
    },
];
